#if !defined(AFX_SEARCHVIEW_H__CB9E43B7_81A9_4F7C_986E_BA6FA183492E__INCLUDED_)
#define AFX_SEARCHVIEW_H__CB9E43B7_81A9_4F7C_986E_BA6FA183492E__INCLUDED_

#include "financedef.h"	// Added by ClassView
#include "SOURCE\FlatHeaderCtrl.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SearchView.h : header file
//
#include "ListEditView.h"

/////////////////////////////////////////////////////////////////////////////
// CSearchView view

class CSearchView : public CListEditView
{
protected:
	CSearchView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CSearchView)

// Attributes
public:

// Operations
public:
	void RefreshSearchView();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSearchView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CSearchView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	void OnRefresh();
	//{{AFX_MSG(CSearchView)
	afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnColumnclick(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSearch();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	_CommandPtr m_pCommand;
	void CountSearchInfo( LPTSTR pStrSQL );
	void ShowAccountRec(LONG lAbsIdx);
	void OpenAccount();
	CBitmap m_bitmap;
	CImageList m_imagelist;
	CFlatHeaderCtrl m_FlatHeader;
	_RecordsetPtr m_pRecordset;
	DISPORDER m_disporder;
	ORDERCOLUMN m_ordercolumn;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SEARCHVIEW_H__CB9E43B7_81A9_4F7C_986E_BA6FA183492E__INCLUDED_)
